﻿using BlogDemo.Core.Entities;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace BlogDemo.Core.Interface
{
    public interface IPostRepository
    {
        Task<PagedList<Post>> GetAllAsync(string title,int pageIndex,int pageSize,string orderBy);
        Task AddAsync(Post post);
        Task<Post> GetByIdAsync(int id);
    }
}
